const http = require('http')


http.createServer((res, req) => {

  req.writeHead(200,{
    "Content-Type": "application/json;charset=utf-8",
    "access-control-allow-origin": "*"
  })
  
  if(res.url == '/a') {
    req.end('hellow node')
  } 
}).listen(5556,() => {
  console.log('5556 server runing')
})